package com.plant.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * UgcFaq entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ugc_faq", catalog = "mr_plants")
public class UgcFaq implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer userId;
	private String remindUserId;
	private String title;
	private String content;
	private String province;
	private String city;
	private Integer pv;
	private Timestamp createTime;
	private String ip;

	// Constructors

	/** default constructor */
	public UgcFaq() {
	}

	/** full constructor */
	public UgcFaq(Integer userId, String remindUserId, String title,
			String content, String province, String city, Integer pv,
			Timestamp createTime, String ip) {
		this.userId = userId;
		this.remindUserId = remindUserId;
		this.title = title;
		this.content = content;
		this.province = province;
		this.city = city;
		this.pv = pv;
		this.createTime = createTime;
		this.ip = ip;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "user_id")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "remind_user_id", length = 64)
	public String getRemindUserId() {
		return this.remindUserId;
	}

	public void setRemindUserId(String remindUserId) {
		this.remindUserId = remindUserId;
	}

	@Column(name = "title", length = 64)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "content")
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "province", length = 122)
	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	@Column(name = "city", length = 122)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "pv")
	public Integer getPv() {
		return this.pv;
	}

	public void setPv(Integer pv) {
		this.pv = pv;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "ip", length = 15)
	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

}